/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package controller.filemanager;

import java.util.ArrayList;

/**
 *
 * @author Wahyu Fahmy
 */
public class Config {
    /*** atribut ***/
    private final String CONFIG = "conf/config.cfg"; // still dummy
    public String LOG_DIR = "";

    /*** method ***/
    public Config(){
        /* init config */
        ReadFile rf = new ReadFile(CONFIG);
        ArrayList<String> content = rf.getContent();
        Config.this.LOG_DIR = content.get(0).split("=")[1];
    }

    public static void main(String[] argv){
        Config cfg = new Config();
        System.out.println("Log: " + cfg.LOG_DIR);
    }
}
